The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Close A Neovim Window With The API

TODO: Pull subtitle into page object code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Close A Neovim Window With The API

-- code/

-- doesn't force close
vim.api.nvim_win_close(WINDOW_ID, {}) 

-- /code


-- code/

-- forces close
vim.api.nvim_win_close(WINDOW_ID, { force=true }) 

-- /code

-- code/

-- (get the id with `vim.api.nvim_set_current_win()`
-- Closes the window (like |:close| with a |window-ID|).

nvim_win_close({window}, {force})  


Attributes: 
    not allowed when |textlock| is active

Parameters: 
    {window}  Window handle, or 0 for current window
    {force}   Behave like `:close!` The last window of a
              buffer with unwritten changes can be closed. The
              buffer will become hidden, even if 'hidden' is
              not set.

-- /code

-- ref
-- url: https://neovim.io/doc/user/api.html#nvim_win_close()




-- categories
-- Neovim 

-- metadata
-- date: 2021-06-18 12:57:51
-- id: 20eoaz32
-- status: draft 
-- type: post
-- site: aws