gorbit99 / codewindow.nvim

MIT License
432 stars 16 forks source link

Exclude filetype please? #3

Closed nyngwang closed 1 year ago

nyngwang commented 1 year ago

Unfortunately, I have a file-tree plugin at RHS.

gorbit99 commented 1 year ago

Just pushed a commit trying to add something like that in. It's done by putting

exclude_filetypes = {...}

into your setup config. Give it a try

nyngwang commented 1 year ago

@gorbit99 Just confirmed it works :) Thanks for the quick fix. Can be safely closed I think!

gorbit99 commented 1 year ago

Fixed by https://github.com/gorbit99/codewindow.nvim/commit/b04c584e631367ca8ff67924c2ba3f06de2bb9f5

ASoldo commented 1 year ago

I have run nvim +PackerSync and it fixed minimap overlapping with status bar but after i add

codewindow.setup({
        z_index = 1,
        minimap_width = 10,
        exclude_filetypes = {}
})

but minimap is still showing in my neotree buffer.

nyngwang commented 1 year ago

@ASoldo You will need to use exclude_filetypes = { 'neo-tree' }, not {}.

ASoldo commented 1 year ago

Thank you, that did it. Didn't know what to put there.

ASoldo commented 1 year ago

For any future reference: if we have lsp symbol outline buffer that is part of the 'neovim/nvim-lspconfig' we allways need to put whole package name in exclude_filetypes? -im using Astro Nvim so there are some extra buffers that I need to exclude.

gorbit99 commented 1 year ago

@ASoldo whenever you have a problem with a specific buffer, go into it with your cursor, type ":set filetype?" and whatever it gives back as the filetype is whatever should go into the exclude option. If the buffer doesn't have a filetype yet, I'm afraid the cleanest solution is telling the plugin maintainers about it